package com.woniuxy.service.impl;

import com.woniuxy.mapper.Usermapper;
import com.work.framework.pojo.User;
import com.woniuxy.service.Userservice;
import com.work.framework.pojo.UserInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements Userservice {
    @Resource
    Usermapper usermapper;

    @Override
    public Integer AddUser(User user) {
        return usermapper.AddUser(user);
    }

    @Override
    public User FindUserByUseraccount(String username) {
        return usermapper.FindUserByUseraccount(username);
    }

    @Override
    public UserInfo FindUserByPhone(String phone) {
        return null;
    }

    @Override
    public Integer FindMoneyByUid(Integer userid) {
        return usermapper.FindMoneyByUid(userid);
    }

    @Override
    public List<UserInfo> findall(Integer uid) {
        return usermapper.findAll(uid);
    }

    @Override
    public UserInfo FindUserMessageByUid(Integer uid) {
        return usermapper.FindUserMessageByUid(uid);
    }

    @Override
    public Integer AddUserMessage(UserInfo userInfo) {
        return usermapper.AddUserMessage(userInfo);
    }

    @Override
    public User FindUserByUid(Integer uid) {
        return usermapper.FindUserByUid(uid);
    }

    @Override
    public Integer AddPhone(String phone) {
        return usermapper.AddPhone(phone);
    }

    @Override
    public List<UserInfo> findUsersInfo() {
        return usermapper.findUsersInfo();
    }

    @Override
    public Integer changeMessage(UserInfo userInfo) {
        return usermapper.changeMessage(userInfo);
    }

    @Override
    public Integer ChangPwd(User user) {
        return usermapper.ChangePwd(user);
    }


}
